/*
 * PopupThreadTextWidget.hpp
 *
 *  Created on: Jun 13, 2012
 *      Author: guillou
 */

#ifndef POPUPTHREADTEXTWIDGET_HPP_
#define POPUPTHREADTEXTWIDGET_HPP_

#include <stdio.h>
#include <QTextBrowser>
#include <QMouseEvent>

struct PopupThreadTextWidget : public QTextBrowser
{
  Q_OBJECT

public:
  PopupThreadTextWidget(QWidget* parent = 0) :
    QTextBrowser(parent) {
  }
  virtual ~PopupThreadTextWidget() {}

public slots:
  // @Override : only emit the signal
  virtual void setSource(const QUrl & p_url) {
    emit(sourceChanged(p_url));
  }
};

#endif /* POPUPTHREADTEXTWIDGET_HPP_ */
